package api

import (
	"china-auto-rental/api/handler"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {

	api := r.Group("/api")
	{
		user := api.Group("/user")
		{
			user.POST("/register", handler.RegisterUser)
			user.GET("/listByStatus", handler.ListByStatusUser)
			user.POST("/updateStatus", handler.UpdateStatusUser)

		}
		api.POST("/upload", handler.Upload)
	}

}
